<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>个人注册</title>
    <link href="/static/css/icons.css" rel="stylesheet"/>
    <link href="/static/css/bootstrap.css" rel="stylesheet"/>
    <link href="/static/css/plugins.css" rel="stylesheet"/>
    <link href="/static/css/main.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/static/css/login.css">
</head>

<body class="login-page">
<div id="login" class="animated bounceIn box">
    <ul id="myTab" class="nav nav-tabs nav-justified bn mytag">
        <li><a href="{% url 'login' %}" style="background-color: #fff!important;">登录</a></li>
        <li><a href="{% url 'register' %}">注册</a></li>
    </ul>

    <div class="login-wrapper input_a">
        <div class="wel">欢迎注册</div>

        <div id="myTabContent" class="tab-content bn">
            <div class="tab-pane fade active in" id="register">
                <!-- 提交注册信息的表单 -->
                <form class="form-horizontal mt20" action="" method="post" id="register-form" role="form"
                      onsubmit="return checkValue();">{% csrf_token %}
                   <!-- 用户名的输入控件 -->
                    <div class="form-group">
                        <div class="col-md-12">
                            <input type="text" class="form-control left-icon" id="username" name="username"
                                   placeholder="请输入用户名" required="required"> <i class="im-user s16 left-input-icon"></i>
                        </div>
                    </div>
                    <!-- 输入密码的控件 -->
                    <div class="form-group">
                        <div class="col-md-12">
                            <input type="password" class="form-control left-icon" id="password" name="password"
                                   placeholder="请输入密码" required="required"> <i
                                class="br-locked s16 left-input-icon"></i>
                        </div>
                        <!-- 确认密码 -->
                        <div class="col-md-12 mt15">
                            <input type="password" class="form-control left-icon" id="password2" name="passowrd2"
                                   placeholder="请确认密码" required="required"> <i
                                class="br-locked s16 left-input-icon"></i>
                        </div>
                    </div>

                    <div class="form-group">
                        <div class="col-md-12">
                            <input type="text" class="form-control left-icon" id="tel" name="tel" placeholder="请输入手机号"
                                   required="required" onkeyup="this.value=this.value.replace(/\D/g,'')"
                                   onfocus="this.value=this.value.replace(/\D/g,'')"> <i
                                class="ec-mobile s16 left-input-icon"></i>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-12">
                            <input type="text" class="form-control left-icon" id="email" name="email"
                                   placeholder="请输入邮箱" required="required">
                            <i class="glyphicon glyphicon-envelope s16 left-input-icon"></i>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-md-12">
                            <input type="text" class="form-control left-icon" id="address" name="address"
                                   placeholder="请输入现居住址" required="required"> <i
                                class="st-map-marker s16 left-input-icon"></i>
                        </div>
                    </div>
                    <div class="seperator">
                        <!-- 显示错误信息 -->
                        <span style="color: red; font-weight: bold; font-size: 20px;"></span>
                    </div>
                    <div class="form-group">
                        <div class="col-md-12 col-sm-12 col-xs-12">
                            <button class="btn btn-success col-md-offset-2 col-md-8 button" id="reg" type="submit">注册</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>

<script src="/static/js/pace.min.js"></script>
<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/bootstrap.js"></script>
<script src="/static/js/jquery.icheck.js"></script>
<script src="/static/js/jquery.validate.js"></script>
<script src="/static/js/additional-methods.min.js"></script>
<script src="/static/js/login.js"></script>
</body>

</html>